package com.ruoyi.system.dubbo;

import com.ruoyi.system.api.RemoteRoleService;
import com.ruoyi.system.api.domain.SysRole;
import com.ruoyi.system.service.ISysRoleService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * @author 76521
 * @date 2023/09/13
 */
@RequiredArgsConstructor
@Service
@DubboService
public class RemoteRoleServiceImpl implements RemoteRoleService {

    private final ISysRoleService roleService;

    @Override
    public SysRole selectRoleById(Long roleId) {
        return roleService.selectRoleById(roleId);
    }
}
